/**
 * Created by tom on 10/01/14.
 */
public class DiamondWithName {

    public static void main(String[] args)
    {
        int heightOfTriangle = Integer.parseInt(args[0]);

        int maxWidth = (heightOfTriangle*2)-1;

        int astrixsWidth = 1;

        for(int x=0; x < heightOfTriangle-1; x++)
        {
            // print this line
            printWhiteSpaces(maxWidth, astrixsWidth);
            printAstrixs(astrixsWidth);
            printWhiteSpaces(maxWidth, astrixsWidth);
            System.out.println();

            astrixsWidth +=2;
        }

        System.out.println("Thomas");

        astrixsWidth -=2;

        for(int x= heightOfTriangle-1; x >0; x--)
        {

            printWhiteSpaces(maxWidth, astrixsWidth);
            printAstrixs(astrixsWidth);
            printWhiteSpaces(maxWidth, astrixsWidth);
            System.out.println();

            astrixsWidth -=2;
        }

    }

    private static void printAstrixs(int workingWidth) {
        for(int numberOfAstrixs =0; numberOfAstrixs < workingWidth; numberOfAstrixs++)
        {
            System.out.print("*");
        }
    }

    private static void printWhiteSpaces(int maxWidth, int workingWidth) {
        for(int numberOfWhiteSpaces = (maxWidth-workingWidth)/2; numberOfWhiteSpaces > 0; numberOfWhiteSpaces--)
        {
            System.out.print(" ");
        }
    }

}
